# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corefm
pkgver=4.5.0
pkgrel=0
pkgdesc="A lightweight file-manager from C-Suite"
# armhf blocked by qt5-qtdeclarative
arch="all !armhf"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="
	cmake
	libcprime-dev
	libcsys-dev
	qt5-qtbase-dev
	qt5-qtmultimedia-dev
	samurai
	"
source="https://gitlab.com/cubocore/corefm/-/archive/v$pkgver/corefm-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No tests

build() {
	cmake -B build -GNinja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
66444eb05b6f93bf0bdcef73fcf84d9519aaebfff96d7628b44e18621bd4c642fd6a29977470014f903f3bfd323d1b98140ec7c7ec93356df48dd7dcb7bd629c  corefm-v4.5.0.tar.gz
"
